(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/member/invite/invite" ], {
    "16c8": function(e, t, n) {
        var o = n("afa7");
        n.n(o).a;
    },
    "5b7b": function(e, t, n) {
        n.r(t);
        var o = n("5f8e"), i = n.n(o);
        for (var r in o) "default" !== r && function(e) {
            n.d(t, e, function() {
                return o[e];
            });
        }(r);
        t.default = i.a;
    },
    "5d76": function(e, t, n) {
        n.r(t);
        var o = n("ecf4"), i = n("5b7b");
        for (var r in i) "default" !== r && function(e) {
            n.d(t, e, function() {
                return i[e];
            });
        }(r);
        n("16c8");
        var u = n("f0c5"), s = Object(u.a)(i.default, o.b, o.c, !1, null, "1f9044af", null, !1, o.a, void 0);
        t.default = s.exports;
    },
    "5f8e": function(e, t, n) {
        (function(e) {
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.default = void 0;
            var o = {
                mixins: [],
                components: {
                    wybPopup: function() {
                        n.e("components/wyb-popup/wyb-popup").then(function() {
                            return resolve(n("1306"));
                        }.bind(null, n)).catch(n.oe);
                    }
                },
                data: function() {
                    return {
                        photo: [],
						poster: "",
						url_link:'',
                        userId:'',
                        appid:'',
                        url_info:'寄快递上门取件，运费5元起，顺丰，京东，德邦，韵达，等上门取件',
                        ruleList: [],
                        swiperIndex: 0,
                        site:[],
                        type:0,
                        profit:[]
                    };
                },
                onShareAppMessage: function(e) {
                    return "button" === e.from ? {
                        title: "快递寄件 分享返佣长期受益",
                        imageUrl: this.photo[this.swiperIndex].url,
                        path: "/pages/index/index?user_id=".concat(this.$db.get("userId"))
                    } : {
                        title: "快递寄件 分享返佣长期受益",
                        path: "/pages/index/index?user_id=".concat(this.$db.get("userId"))
                    };
                },
                methods: {
                    close_popup: function() {
                        this.$refs.popup.hide();
                    },
                    copy: function() {
                        var userId = wx.getStorageSync("userId");
                        var wxapp = wx.getStorageSync("wxapp");
                        let that = this;
                        var url_link = that.url_link;
                        var url_info = that.url_info;
						var data = '小程序推广连接：pages/index/index?promoteId='+userId+'\n小程序appid：'+wxapp.appid+'\n站外推广连接：'+url_link +'\n推广文案：'+url_info
						console.log('copy--data',data);
                        wx.setClipboardData({
                             data: data,
                             success: function (res) {
								wx.showToast({
									title: '复制成功',
									icon:"none",
									mask:"true"
								})
							},
							fail: function (r) {
								console.log('copy--data',r);
                                wx.showToast({
									title: '复制失败'+r.errMsg,
									icon:"none",
									mask:"true"
								})
                            }
                         })
                    },
                    copyUrl: function() {
                        var t = this, n = "/page/index/index?promoteId=" + t.$store.state.promoteId;
                        console.log(n), e.setClipboardData({
                            data: n,
                            success: function() {
                                e.showToast({
                                    title: "复制成功",
                                    icon: "none",
                                    duration: 1e3,
                                    success: function(e) {
                                        setTimeout(function() {
                                            t.$refs.popup.show();
                                        }, 600);
                                    }
                                });
                            }
                        });
                    },
                    onSwiperChange: function(e) {
                        this.swiperIndex = e.detail.current;
                    },
                    save: function() {
                        var t = this.photo[this.swiperIndex].key, n = this.$db.get("userInfo").id ? this.$db.get("userInfo").id : "", o = this;
                        o.$api.posterCreApi({
                            user_id: n,
                            poster_key: t
                        }, function(t) {
                            if ("1" == t.code) {
                                var n = (t.data || "").user_poster_url, i = void 0 === n ? "" : n;
                                e.getImageInfo({
                                    src: i,
                                    success: function(t) {
                                        e.saveImageToPhotosAlbum({
                                            filePath: t.path,
                                            success: function() {
                                                o.$common.successToShow("邀请海报已下载至您的手机相册");
                                            },
                                            fail: function() {
                                                o.$common.errorToShow("邀请海报下载失败");
                                            }
                                        });
                                    }
                                });
                            } else o.$common.errorToShow(t.msg);
                        });
                    }
                },
                onLoad: function() {
                    var userId = wx.getStorageSync("userId");
                    var wxapp = wx.getStorageSync("wxapp");
                    this.userId=userId;
                    this.appid=wxapp.appid;
                    this.url_info=wxapp.url_info;

                    this.site = this.$db.get("site");
                    this.profit = this.site.profit;

                    var e = this;
                    this.$api.settravel("分享返佣"), this.$api.posterApi(function(t) {
                        if ("1" == t.code) {
                            var n = (t.data || {}).poster_url, o = void 0 === n ? "" : n;
                            var u = (t.data || "").url_link, u = void 0 === u ? "" : u;
                            var a = (t.data || "").appid, a = void 0 === a ? "" : a;
                            var i = (t.data || "").url_info, i = void 0 === i ? "" :i;
                            e.url_link = u;
                            e.photo = o;
                            e.appid = a;
                            e.url_info =i;
                            e.profit = t.data.profit;
                        } else e.$common.errorToShow(t.msg);
                    }), 0 != this.$db.get("userToken") || this.checkIsLogin();
                }
            };
            t.default = o;
        }).call(this, n("543d").default);
    },
    afa7: function(e, t, n) {},
    b97a: function(e, t, n) {
        (function(e) {
            n("98af"), o(n("66fd"));
            var t = o(n("5d76"));
            function o(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = n, e(t.default);
        }).call(this, n("543d").createPage);
    },
    ecf4: function(e, t, n) {
        n.d(t, "b", function() {
            return i;
        }), n.d(t, "c", function() {
            return r;
        }), n.d(t, "a", function() {
            return o;
        });
        var o = {
            wybPopup: function() {
                return n.e("components/wyb-popup/wyb-popup").then(n.bind(null, "1306"));
            }
        }, i = function() {
            this.$createElement, this._self._c;
        }, r = [];
    }
}, [ [ "b97a", "common/runtime", "common/vendor" ] ] ]);